/* static/style.css */
:root {
    /* Light theme colors */
    --background-color: #ffffff;
    --text-color: #000000;
    --button-bg-color: #4CAF50;
    --button-text-color: #ffffff;
    --table-header-bg-color-light: #f2f2f2; /* Light table header background color */
}

[data-theme="dark"] {
    /* Dark theme colors */
    --background-color: #121212;
    --text-color: #ffffff;
    --button-bg-color: #2E7D32;
    --button-text-color: #ffffff;
    --table-header-bg-color-dark: #424242; /* Dark table header background color */
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: var(--table-header-bg-color-light);
    color: var(--text-color);
}

[data-theme="dark"] th {
    background-color: var(--table-header-bg-color-dark);
}

button, form input[type="submit"] {
    background-color: var(--button-bg-color);
    color: var(--button-text-color);
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px; /* Optional: Add some space between buttons */
}

/* Theme toggle button styling */
#theme-toggle {
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: var(--button-bg-color);
    color: var(--button-text-color);
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Form Styling */
.server-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.server-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
}

.server-form input[type="text"],
.server-form input[type="checkbox"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Back Link Styling */
.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #007bff;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 400px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.eye-icon {
    cursor: pointer;
    font-size: 20px;
    display: inline-block;
    width: 24px;
    height: 24px;
    background: no-repeat center center;
  }

  /* 显示密码的眼睛图标 */
  .eye-icon::before {
    content: '\1F441'; /* Unicode for "eye" symbol */
  }

  /* 隐藏密码的眼睛图标 */
  .eye-icon.show-password::before {
    content: '\1F576'; /* Unicode for "eye with a slash" symbol */
  }